const path = require('path')
const VueLoaderPlugin = require('vue-loader/lib/plugin');

module.exports = {
  entry: './src/main.js',
  output: {
    filename: 'bundle.js',
    path: path.resolve(__dirname, 'dist')
  },
  devServer: {
    contentBase: './src'
   },
   mode: 'production',
   plugins: [
     new VueLoaderPlugin()
   ],
   resolve: {
     alias: {
       // "vue$": "vue/dist/vue.js"
     }
   },
   module: {
     rules: [
       { test: /\.css$/, use: ['style-loader', 'css-loader'] },
       { test: /\.less$/, use: ['style-loader', 'css-loader','less-loader'] },
       { test: /\.scss$/, use: ['style-loader', 'css-loader','sass-loader'] },
       { test: /\.(jpg|png|gif|bmp|jpeg)$/, use: ['url-loader'] },
       { test: /\.(ttf|eot|svg|woff|woff2)$/, use: ['url-loader'] },
       {test: /\.vue$/, use: 'vue-loader'}
     ]
   },
   performance: {
    hints: false
  }
}
